package com.fxsh.learn.lambda;

public class CheckPersonByAgeAndGender implements CheckPerson{
    @Override
    public boolean test(Person p) {
        return p.getGender() == Person.Gender.Man && p.getAge() >= 25;
    }
}
